package com.lzh.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("接口统一返回数据")
public class ResultBean<T> {

    @ApiModelProperty("状态码 200正常 0失败")
    int code;

    @ApiModelProperty("接口返回消息描述")
    String msg;

    @ApiModelProperty("接口返回数据")
    T data;
}
